//
//  AppDelegate.h
//  BosidengIphone
//
//  Created by  on 11-12-25.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CustomData.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate> 

@property (strong, nonatomic) UIWindow *window;

//获取当前运行程序目录下文件的路径
+ (NSString *)getDocumentFilePath:(NSString *)fileName;

//获取当前运行程序目录下Cache的路径
+ (NSString *) getCacheFilePath:(NSString *)fileName;

//获取当前应用程序中文件的路径
+ (NSString *)bundlePath:(NSString *)fileName;

//判断目录是否存在
+ (BOOL)checkDirExist:(NSString *)director;

//创建目录
+ (void)createDir:(NSString *)director;

//判断文件是否存在
+ (BOOL)checkFileExist:(NSString *)filePath;

//删除文件和文件夹
+ (BOOL)deleteFile:(NSString *)filePath;

+ (void)setLanguage:(NSString *)str;

+ (NSString *)getCacheFilePathByUrl:(NSString *)url;

+ (NSString *)getLanguage;

+ (NSString *)getBackImagePath;

+ (void)setBackImagePath:(NSString *)str;

+ (NSString *)getLanguageString:(NSString *)key;

+ (NSString *)serviceUrl;

+ (CustomData *)getCustom;

+ (void)cleanLanguageStringBuffer;

- (void)showMainView:(UIViewController *)contentViewController;

- (void)showIndexView;

- (void)reloadApp;

@end
